package com.hopes.bizz.poll.town.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author: ljh
 * @create: 2023/10/10
 */
@Data
public class TownHisDataDTO {


    // 数据类型  pollTownDay pollTownHour pollTownMin pollTownRtDataHis
    private String dataType;

    // 乡镇id
    private Long townId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "开始时间不能为空")
    private Date beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @NotNull(message = "结束时间不能为空")
    private Date endTime;

}
